#ifndef TIMER_H
#define TIMER_H

#include <stdio.h>
//#include <dos.h>
//#include <sys/nearptr.h>
//#include <go32.h>
//#include <dpmi.h>
//#include <crt0.h>
//#include <pc.h>

#define PIT0 0x40
#define PIT1 0x41
#define PIT2 0x42
#define PITMODE 0x43
#define PITCONST 1193180L

#define OCR1    0x20
#define IMR1    0x21

#define OCR2    0xA0
#define IMR2    0xA1

extern void timer_init();
extern void timer_close();
extern void delay(int ms);

extern unsigned int timer_count;
extern unsigned int timer;
extern unsigned int hooktimer;
extern unsigned char an;
extern unsigned char tickctr;
extern unsigned char sec;
extern unsigned char min;
extern unsigned char hr;

#endif
